<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>发布文章</title>

  <script type="text/javascript">
    //判断用户注册情况
    function checkLength(){
      var domAccount = document.getElementById("account").value;
      var domPassword = document.getElementById("password").value;
      var domUserName = document.getElementById("userName").value;
      if(domAccount.length < 6){
        alert("账号最少输入6字符");
      }else if(domPassword.length < 6){
        alert("密码最少输入6字符");
      }else if(domUserName == ''){
        alert("请输入用户名");
      }
    }
  </script>

</head>
<body>
<center>
  <form action="/hexu/worker/add/article" method="get">
    文章名字
    <input type="text" name="name" id="name" placeholder="文章名字" size="22"
           maxlength="12"/>

    <p>内容
      <input type="textarea " rows="10" cols="20" name="content" id="content" size="22"
             style="OVERFLOW:   visible">
      /></p>
    <p>
      <input type="submit" value="添加" />
      <input type="reset" /></p>
  </form>

</center>

</body>


</html>